<?php

class GoodsSellUpSpeedAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT
    );

    /**
     * 商品出售加速
     *
     * @param int $userId
     * @param string $gridId
     * @param int $gridLayer
     * @param int $cliCost
     * @param int $reqTime
     * @return SzResponse
     */
    public function execute($userId, $gridId, $gridLayer, $cliCost, $reqTime)
    {
        return;
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);

        /**
         * @var GoodsVo $goods
         * @var ModuleProfileInfoVoList $profileInfoList
         */
        list($goods) = GoodsService::get()->payForSpeedUp($userId, $gridId, $gridLayer, $cliCost, $reqTime);
        return $this->buildResponse(array(
            'goods' => $goods->toArray()
        ));
    }
}